<template>
    <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
        <van-swipe-item v-for="item in swiperArr" :key="item.bannerid">
            <img :src="item.img" alt="">
        </van-swipe-item>
    </van-swipe>
</template>

<script setup lang="ts">
import{ref} from 'vue'
import {swiperfn} from "../../api/home"
const swiperArr:any=ref([])
swiperfn().then((res:any)=>{
   console.log(res);
   swiperArr.value=res.data
   
})
</script>
<style scoped>
img {
    width: 100%;
}
</style>